@/*
表单中input框标签中各个参数的说明:

hidden : input hidden框的id
id : input框id
name : input框名称
readonly : readonly属性
clickFun : 点击事件的方法名
style : 附加的css属性
@*/
<div id="${id}" name="${id}">
    @for(item in list){
    <div value="${item.id}" style="margin: 5px;">
        <span style="display: inline-block;width: 12%">${item.customerName}</span>
        <span style="display: inline-block;width: 20%">${item.customerPhone}</span>
        <span style="display: inline-block;width: 11%">${item.phoneSharShip}</span>
        <span style="display: inline-block;width: 10%">${item.sex}</span>
        <span style="display: inline-block;width: 10%">${item.customerAge}</span>
        <span style="display: inline-block;width: 10%">${item.status}</span>
        <span id="${item.id}"></span>
    </div>
    <script>
        /*if ("${item.status}" == "到店") {
            txt = '<button type="button" class="add${item.id} btn" id="add${item.id}" value="${item.id}" style="padding: 2px 12px;margin: 0;color: white;background: #2b6594;">复到</button>' ;
            document.getElementById('${item.id}').innerHTML = txt;
            var add${item.id} = document.getElementsByClassName('add${item.id}')[0];
            add${item.id}.onclick = function () {
                var index = layer.open({
                    type: 2,
                    title: '添加到店客户',
                    area: ['90%', '90%'], //宽高
                    fix: true, //不固定
                    maxmin: true,
                    content: Feng.ctxPath + '/customer/to_reconsulting/' + document.getElementById('add${item.id}').value
                });
                this.layerIndex = index;
            };
        }*/
       //if ("${item.status}" == "预约") {
            txt = '<button type="button" value="${item.id}" id="yue${item.id}" class="btn yue${item.id}" style="padding: 2px 12px;margin: 0;color: white;background: #2b6594;">初到</button>' ;
            document.getElementById('${item.id}').innerHTML = txt;
            var yue${item.id} = document.getElementsByClassName('yue${item.id}')[0];    //加
            yue${item.id}.onclick = function () {
                var index = layer.open({
                    type: 2,
                    title: '添加到店客户',
                    area: ['90%', '90%'], //宽高
                    fix: true, //不固定
                    maxmin: true,
                    content: Feng.ctxPath + '/customer/customer_add/' + document.getElementById('yue${item.id}').value
                });
                this.layerIndex = index;
            };
        //}
    </script>
    @}
</div>
@if(isNotEmpty(underline) && underline == 'true'){
<div class="hr-line-dashed"></div>
@}


